package com.candy.service.impl;

import com.candy.dao.IAccountDao;
import com.candy.dao.impl.AccountDaoImpl;
import com.candy.service.IAccountService;

/**
 * 业务逻辑处理层
 */
public class AccountServiceImpl implements IAccountService {
    private IAccountDao accountDao=new AccountDaoImpl();

    public AccountServiceImpl() {
    }

    public AccountServiceImpl(IAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void saveAccount() {
        accountDao.saveAccount();
    }

    public void startMethod(){
        System.out.println("对象初始化调用....");
    }
    public  void endMethod(){
        System.out.println("对象销毁调用.....");
    }


}
